<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <!-- import CSS -->
    <link rel="stylesheet" href="https://cdn.staticfile.org/element-ui/2.15.9/theme-chalk/index.css">
    <style>
        body{
            background-color: rgb(241,242,243);
        }
        .el-header{
            background-color: white;
        }
        .center{width: 1200px;margin: 0 auto}
        footer h3{
            color: white;
        }
        #footer_center p{
            margin: 0;
        }


    </style>
</head>
<body>
<div id="app">
    <el-container>
        <el-header height="80px">
            <div class="center">
                <el-row gutter="20">
                    <el-col span="6">
                        <img src="imgs/icon.png" width="196" height="65">
                    </el-col>
                    <el-col span="10">
                        <el-menu mode="horizontal" active-text-color="orange">
                            <el-menu-item index="0">首页</el-menu-item>
                            <el-menu-item index="1">食谱</el-menu-item>
                            <el-menu-item index="2">视频</el-menu-item>
                            <el-menu-item index="3">资讯</el-menu-item>
                        </el-menu>
                    </el-col>
                    <el-col span="6">
                        <el-input style="position: relative;top: 15px" placeholder="请输入搜索的关键字">
                            <el-button slot="append" icon="el-icon-search"></el-button>
                        </el-input>
                    </el-col>
                    <el-col span="2">
                        <el-popover
                                placement="top-start"
                                title="欢迎来到烘焙坊!"
                                width="200"
                                trigger="hover">
                            <div slot="reference">
                                <i style="font-size: 30px;position: relative;top: 20px"
                                   class="el-icon-user"></i>
                            </div>
                            <el-button type="info">注册</el-button>
                            <el-button type="warning">登录</el-button>
                        </el-popover>
                    </el-col>
                </el-row>
            </div>
        </el-header>
        <el-main class="center" style="margin-top: 30px">
           <!--走马灯开始-->
            <el-carousel height="350px" :interval="3000">
                <el-carousel-item v-for="item in 3">
                    <img :src="'imgs/banner'+item+'.jpg'" width="100%" height="100%">
                </el-carousel-item>
            </el-carousel>
           <!--走马灯结束-->
            <!--食谱开始-->
                <el-row style="background-color: white">
                    <el-col span="3">
                        <p style="font-size: 28px;margin: 15px">烘焙食谱</p>
                    </el-col>
                    <el-col span="21">
                        <el-menu mode="horizontal" default-active="0"
                                 active-text-color="orange">
                            <el-menu-item index="0">全部</el-menu-item>
                            <el-menu-item index="1">面包</el-menu-item>
                            <el-menu-item index="2">零食</el-menu-item>
                            <el-menu-item index="3">家常菜</el-menu-item>
                        </el-menu>
                    </el-col>
                </el-row>
                <el-row gutter="20">
                    <el-col span="6" v-for="item in recipeArr">
                        <el-card style="margin: 10px 0">
                            <img :src="item.imgUrl" width="100%" height="144">
                            <p style="height: 40px">{{item.title}}</p>
                            <el-row>
                                <el-col span="4">
                                    <el-avatar size="small" :src="item.userImgUrl"></el-avatar>
                                </el-col>
                                <el-col span="10">{{item.nickName}}</el-col>
                                <el-col span="10">
                                    <span style="float: right;
                                    font-size: 12px;color: #666">{{item.categoryName}}</span>
                                </el-col>
                            </el-row>
                        </el-card>
                    </el-col>
                </el-row>
                <div style="text-align: center;margin-bottom: 20px">
                    <el-button>点击查看更多食谱</el-button>
                </div>
            <!--食谱结束-->
            <!--视频开始-->
            <el-row style="background-color: white">
                <el-col span="3">
                    <p style="font-size: 28px;margin: 15px">烘焙视频</p>
                </el-col>
                <el-col span="21">
                    <el-menu mode="horizontal" default-active="0"
                             active-text-color="orange">
                        <el-menu-item index="0">全部</el-menu-item>
                        <el-menu-item index="1">面包教学</el-menu-item>
                        <el-menu-item index="2">零食鉴赏</el-menu-item>
                        <el-menu-item index="3">家常菜教程</el-menu-item>
                    </el-menu>
                </el-col>
            </el-row>
            <el-row gutter="20">
                <el-col span="6" v-for="item in recipeArr">
                    <el-card style="margin: 10px 0">
                        <img :src="item.imgUrl" width="100%" height="144">
                        <p style="height: 40px">{{item.title}}</p>
                        <el-row>
                            <el-col span="4">
                                <el-avatar size="small" :src="item.userImgUrl"></el-avatar>
                            </el-col>
                            <el-col span="10">{{item.nickName}}</el-col>
                            <el-col span="10">
                                    <span style="float: right;
                                    font-size: 12px;color: #666">{{item.categoryName}}</span>
                            </el-col>
                        </el-row>
                    </el-card>
                </el-col>
            </el-row>
            <div style="text-align: center;margin-bottom: 20px">
                <el-button>点击查看更多视频</el-button>
            </div>
            <!--视频结束-->
            <!--资讯开始-->
            <el-row style="background-color: white">
                <el-col span="3">
                    <p style="font-size: 28px;margin: 15px">行业资讯</p>
                </el-col>
                <el-col span="21">
                    <el-menu mode="horizontal" default-active="0"
                             active-text-color="orange">
                        <el-menu-item index="0">全部</el-menu-item>
                        <el-menu-item index="1">美食资讯</el-menu-item>
                        <el-menu-item index="2">店家资讯</el-menu-item>
                    </el-menu>
                </el-col>
            </el-row>
            <el-row gutter="20">
                <el-col span="6" v-for="item in recipeArr">
                    <el-card style="margin: 10px 0">
                        <img :src="item.imgUrl" width="100%" height="144">
                        <p style="height: 40px">{{item.title}}</p>
                        <el-row>
                            <el-col span="4">
                                <el-avatar size="small" :src="item.userImgUrl"></el-avatar>
                            </el-col>
                            <el-col span="10">{{item.nickName}}</el-col>
                            <el-col span="10">
                                    <span style="float: right;
                                    font-size: 12px;color: #666">{{item.categoryName}}</span>
                            </el-col>
                        </el-row>
                    </el-card>
                </el-col>
            </el-row>
            <div style="text-align: center;margin-bottom: 20px">
                <el-button>点击查看更多资讯</el-button>
            </div>
            <!--资讯结束-->
        </el-main>
        <el-footer style="background-color: #2f3234;
        height: 280px;padding: 50px 0">
            <div class="center" style="color: #666;text-align: center">
                <el-row gutter="20">
                    <el-col span="8">
                        <img src="imgs/icon.png">
                        <p>教程灵感就看烘焙坊</p>
                        <p>烘焙行业网络社区平台</p>
                        <p>全国百城上千个职位等你来</p>
                    </el-col>
                    <el-col span="8">
                        <el-row id="footer_center">
                            <el-col span="8">
                                <h3>关于我们</h3>
                                <p>关于我们</p><p>烘焙学院</p>
                                <p>烘焙食谱</p><p>分类信息</p>
                                <p>求职招聘</p><p>社区交流</p>
                            </el-col>
                            <el-col span="8">
                                <h3>服务与支持</h3>
                                <p>联系我们</p><p>广告投放</p>
                                <p>用户协议</p><p>友情链接</p>
                                <p>在线反馈</p><p>我发投稿</p>
                            </el-col>
                            <el-col span="8">
                                <h3>底部导航</h3>
                                <p>Archiver</p><p>手机版</p>
                                <p>小黑屋</p>
                            </el-col>
                        </el-row>
                    </el-col>
                    <el-col span="8">
                        <div style="font-size: 60px;">
                            <span style="color: orange">烘焙</span>坊
                        </div>
                        <p>烘焙行业网络社区平台</p>
                    </el-col>
                </el-row>
            </div>
        </el-footer>
    </el-container>
</div>
</body>
<!-- import Vue before Element -->
<script src="https://cdn.staticfile.org/vue/2.6.14/vue.min.js"></script>
<!-- import JavaScript -->
<script src="https://cdn.staticfile.org/element-ui/2.15.9/index.min.js"></script>
<script>
    let v = new Vue({
        el: '#app',
        data: function () {
            return {
                recipeArr:[
                    {
                        "id": 27,
                        "title": "家常面包",
                        "imgUrl": "imgs/a.jpg",
                        "categoryName": "面包",
                        "nickName": "汤姆",
                        "userImgUrl": "imgs/head.jpg"
                    },
                    {
                        "id": 18,
                        "title": "爆浆抹茶甜甜圈面包，自带幸福感的小甜甜",
                        "imgUrl": "imgs/b.jpg",
                        "categoryName": "家常菜",
                        "nickName": "汤姆",
                        "userImgUrl": "imgs/head.jpg"
                    },
                    {
                        "id": 17,
                        "title": "心形火龙果椰蓉面包,任谁都抗拒不了",
                        "imgUrl": "imgs/c.jpg",
                        "categoryName": "小食",
                        "nickName": "汤姆",
                        "userImgUrl": "imgs/head.jpg"
                    },
                    {
                        "id": 16,
                        "title": "蔓越莓绿豆糕，味道还不错值得一试!",
                        "imgUrl": "imgs/d.jpg",
                        "categoryName": "面包",
                        "nickName": "汤姆",
                        "userImgUrl": "imgs/head.jpg"
                    },
                ]
            }
        },
        methods: {

        }
    })
</script>
</html>